queue using two stacks hackerrank solution python